package com.clientmanage.mapper;

import com.clientmanage.domain.bean.CustomerCareReminder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clientmanage.domain.vo.clientCareReminderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HUANG
 * @since 2025-06-30
 */
@Mapper
public interface CustomerCareReminderMapper extends BaseMapper<CustomerCareReminder> {
    /**
     * 分页+条件查询关怀VO
     */
    List<clientCareReminderVo> selectPageVo(@Param("customerName") String customerName,
                                            @Param("petName") String petName,
                                            @Param("careType") String careType,
                                            @Param("status") String status);

    List<CustomerCareReminder> generateBatchCareReminders(
        @Param("careType") String careType,
        @Param("advanceDays") Integer advanceDays,
        @Param("sendMethod") String sendMethod,
        @Param("template") String template
    );
}
